Skip to content

Clarify logout and invite voluntary Open Food Facts contributions - #129

Merged
xrpbanks merged 2 commits into
mainfrom
fix/app-logout-and-food-data-credit
Sep 7, 2026
Merged

Clarify logout and invite voluntary Open Food Facts contributions#129
xrpbanks merged 2 commits into
mainfrom
fix/app-logout-and-food-data-credit

Conversation

@xrpbanks

@xrpbanks xrpbanks commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

The account panel describes the joint session button as “Sign out everywhere”, which is unclear and overstates its device scope. The app already credits Open Food Facts but offers no way for a grateful user to contribute.

This PR uses “Log out” / “Logging out...” and explains that embedded logout ends the CalorieToken.net and CalorieApp sessions on this device. It adds a quiet thank-you and optional contribution link at the bottom inside CalorieApp, preserving the existing Open Food Facts attribution and ODbL link.

The contribution link opens the official Open Food Facts contributor page in a new tab. No form submission or donation is initiated.

The account controller diff contains presentation strings only; handleLogout, authentication, storage and bridge messaging are unchanged. Based directly on accepted main f689a4acd9bb34f49c6f06267fb22537b17495b0. WordPress widget positioning and floating shortcuts are prepared separately in #130.

Validation: exact comparison confirms the account controller differs only in the requested strings. The existing copy assertion was updated from “Sign out everywhere” to the device-scoped explanation. All CI jobs pass on final head 9cf5d57a49d011bbd17622dbb4dff0cb09ac8d51, including frontend lint, build and authentication tests, backend tests, repository boundary and plugin release check. Copilot reviewed 3/3 changed files on that head with zero new comments; its formal review state is COMMENTED with approval recommended. Native rendered review was completed after the approved deployment on 2026-09-07.

Merged and deployed with the user's approval on 2026-09-07.

Deployment verification: merge 4baea3acaeaa14dacc602ae8d6154ab4c7e97836 preserves the reviewed tree cf6116569be39336a8d98ac06491e9140e826bea. Render reported Deploy succeeded | Live for this exact commit after a manual deployment (1m06s); automatic deployment remains disabled. The thank-you text, existing OFF/ODbL attribution and optional contribution link were verified inside the live WordPress iframe at https://calorietoken.net/index.php/calorieapp/. The link uses _blank with noopener noreferrer.

Visual checks covered the live desktop viewport (1363 × 936) and the native WordPress Customizer mobile preview (320px wide). The footer and contribution link fit and wrap on mobile. The signed-in app label was validated through the reviewed source and CI; this visual check used an anonymous app session and did not initiate another wallet sign-in or live logout.

Copilot AI lite review requested due to automatic review settings September 6, 2026 23:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are limited to UI copy and a safe external link (with appropriate target/rel), with no alterations to authentication/logout logic.

Pull request overview

This PR refines logout copy in the account panel to avoid overstating device/session scope, and adds a low-friction, optional link encouraging voluntary contributions to Open Food Facts while preserving existing attribution.

Changes:

  • Updates embedded-session helper text and standardizes the logout button label/state to “Log out” / “Logging out...”.
  • Adds a short thank-you message plus an external “Contribute to Open Food Facts” link (opens in a new tab) in the home page footer.
File summaries
File Description
frontend/components/XamanLoginPanel.tsx Clarifies embedded logout messaging and simplifies the logout button labels.
frontend/app/page.tsx Adds an optional Open Food Facts contribution link and supporting footer copy.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Changes are limited to presentation strings and an added external link, with test coverage updated to match the new copy.

Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@xrpbanks
xrpbanks merged commit 4baea3a into main Sep 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants